async function run($input, $output, $modules = modules) {
    /**上传临时素材（图片）
    * 官方API：https://work.weixin.qq.com/api/doc/90000/90135/90253
    * 错误码查询工具：https://open.work.weixin.qq.com/devtool/query?e=
    */

    const wxworkApi = $modules.wxworkApi;

    let image_url = $input.image_url;
    let mediaName = new Date().getTime() + ".png";

    //上传临时素材
    let media = await wxworkApi.uploadMediaByUrl(image_url, "image", mediaName);

    //输出
    $output.media_id = media.media_id;
    $output.created_at = media.created_at;

}